#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
int main()
{
	int* a = NULL;
	a = (int*)malloc(sizeof(int));
	if (a == NULL)
	{
		perror("malloc");
		return 1;
	}
	*a = 10;
	printf("%d", *a);
	free(a);
	a = NULL;
}
